package cn.jilian.entity;

import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Transient;

import org.hibernate.annotations.DiscriminatorOptions;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@DynamicInsert
@DynamicUpdate
@DiscriminatorValue(Menu.MENUGROUP_META)
@DiscriminatorOptions(force=true)
public class MenuGroup extends Menu {

	

	/**
	 * 
	 */
	private static final long serialVersionUID = -6147994292724089103L;
	@Transient
	private List<Menu> children;

	public List<Menu> getChildren() {
		return children;
	}

	public void setChildren(List<Menu> children) {
		this.children = children;
	}
	
}
